package com.poetry.constant;

public class RedisConstant {
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_USER_KEY = "login:user:";
    public static final Long LOGIN_USER_TTL = 30L;

    public static final Long CACHE_NULL_TTL = 2L;

    public static final String CACHE_POEM_KEY = "cache:poem:";
    public static final Long CACHE_POEM_TTL = 2L;

    public static final String CACHE_AUTHOR_KEY = "cache:author:";
    public static final Long CACHE_AUTHOR_TTL = 2L;

    public static final String POEM_LIKED_KEY = "poem:liked:";

    public static final String POPULAR_POEMS_KEY = "ranking:popular_poems";
    public static final String DAILY_VIEWS_KEY = "counter:daily_views:";
    public static final String NOTES_COUNT_KEY = "notes_count:";

    public static final String HISTORY_USER_KEY = "history:user:";
    public static final Integer HISTORY_MAX_SIZE = 50;
    public static final Long CACHE_HISTORY_TTL = 7L;
    public static final String HISTORY_SET_KEY = "set:";

    public static final String SEARCH_HISTORY_KEY = "history::search";
    public static final Integer SEARCH_MAX_SIZE = 10;

    public static final String LAST_POEM_SYNC = "last_poem_sync";


    public static final String USER_SIGN_KEY = "sign:";
}
